<?php

include_once 'TypeMember.php';
include_once 'CommentStatementCollection.php';
include_once 'Expression.php';
include_once 'PrimitiveExpression.php';
include_once 'Attributes.php';

class Field extends TypeMember
{
    public function __construct($name)
    {
        parent::__construct($name);
        $this->Attributes = new FieldAttributes();
    }

    public function __set($name, $value)
    {
        parent::__set($name, $value);
        
        if($name == 'InitExpression')
        {
            $this->set_InitExpression($value);
        }
    }
    
    public function __get($name)
    {
        $ret = parent::__get($name);
        
        if($ret != null)
        {
            return $ret;
        }
        
        if($name == 'InitExpression')
        {
            return $this->get_InitExpression();
        }
    }
    
    public function get_InitExpression()
    {
        return $this->InitExpression;
    }

    public function set_InitExpression($initExpression)
    {
        $this->InitExpression = $initExpression;
    }
    
    private $InitExpression;
}

?>
